/ Assignments Follow
.assignment_list
  %ul
    -@assignments.each do |assign|
      %li
        .assignment_title
          %a{:name => assign[:title]}= assign[:title]
        .assignment_description= assign[:description]
        .assignment_info
          %table
            %tr
              %td.assignment_item_cell
                %img{:src => "img/notes.png"}
              %td.assignment_item_content
                %ul
                  %li
                    %a{:href => assign[:href], :name => assign[:title], :alt => assign[:title]} More Details
            -if assign[:week_of] != nil
              %tr
                %td.assignment_item_cell
                  %img{:src => "img/time.png"}
                %td.assignment_item_content
                  %ul
                    %li
                      Week Of
                      = assign[:week_of].strftime('%A, %B ')
            -if assign[:assigned] != nil or assign[:due] != nil
              %tr
                %td.assignment_item_cell
                  %img{:src => "img/time.png"}
                %td.assignment_item_content
                  %ul
                    -if assign[:assigned] != nil
                      %li
                        Assigned
                        = assign[:assigned].strftime('%A, %B ')
                    -if assign[:due] != nil
                      %li
                        Due
                        = assign[:due].strftime('%A, %B ')
